package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP商城订单关联商品业务对象 app_goods_info
 *
 * @author heike
 * @date 2023-03-02
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppGoodsInfoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 订单号
     */
    @NotBlank(message = "订单号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orderNo;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long goodsId;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer number;

    /**
     * 商品价格
     */
    @NotNull(message = "商品价格不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal goodsPrice;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
